import java.awt.Rectangle;

public class VehicleRectangle extends Rectangle{
	
	protected Vehicle v;

	public VehicleRectangle(int x, int y, int length, int width, Vehicle v){
		super(x, y, length, width); //intial values, is only updated on get request
		this.v = v;
	}
	
	public int getXPos(){
		this.x = (int)v.position.x;
		return x;
	}
	
	public int getYPos(){
		this.y = (int)v.position.y;
		return y;
	}
	
	public double getHeading(){
		return v.heading;
	}
}
